<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<script>
    function  Vue({data}){
        this._data = data;
        for (let key in this._data){
            Object.defineProperty(this,key,{
                get(){
                    return this._data[key]
                },
                set(v) {
                    this._data[key] = v
                }
            })
        }
    }
    const  vm  = new Vue({
        data:{
            count:1,
            price:100
        }
    })
</script>
</body>
</html>